package com.ztwo.ssm.dao;

import com.ztwo.ssm.pojo.Book;

import java.util.List;

/**
 * @Author ZTwo
 * @Date 2022/6/15 20:55
 */

public interface BookMapper {
    //添加Book
    int addBook(Book book);

    //根据id删除Book
    int deleteBookById(int id);

    //更新Book
    int updateBook(Book Book);

    //根据id查询指定Book
    Book queryBookById(int id);

    //查询全部Book
    List<Book> queryAllBook();

    //根据关键字查询书籍
    List<Book> queryBookByName(String bookName);
}
